package cn.e2win.biz.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.e2win.base.entity.BaseEntity;
//导师关系表，导师对项目，对活动，对创业之家的关系
@Entity
@Table(name = "ds_relation")
public class DsRelation extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		//编号--结算单
		@Id
		@Basic(optional = false)
		@GeneratedValue(strategy = GenerationType.IDENTITY)
		@Column(name = "id", nullable = false)
		private Integer id;
		
		private Integer dsEmpId;
		//相关表
		private String entityType;
		//相关表主键
		private Integer entityId;

		public DsRelation() {
			super();
		}
		public DsRelation(String dsEmpId) {
			super();
			this.dsEmpId = Integer.parseInt(dsEmpId);
		}
		public void setBaseInfo(BaseEntity base){
			this.entityId = base.getId();
			this.entityType = base.getClass().getSimpleName();
		}
		
		
		public Integer getId() {
			return id;
		}
		public void setId(Integer id) {
			this.id = id;
		}
		
		


		
		public Integer getDsEmpId() {
			return dsEmpId;
		}
		public void setDsEmpId(Integer dsEmpId) {
			this.dsEmpId = dsEmpId;
		}
		public String getEntityType() {
			return entityType;
		}
		public void setEntityType(String entityType) {
			this.entityType = entityType;
		}
		public Integer getEntityId() {
			return entityId;
		}
		public void setEntityId(Integer entityId) {
			this.entityId = entityId;
		}

		
}
